package co.fitstart.coach.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.course.Course;
import co.fitstart.entity.courseware.fitnessgroup.FitnessGroup;

/**
 * 
 * @author wangliwang
 *
 */
@Dynamic("hibernate")
public interface FitnessGroupDao {
    
    /**
     * @param course
     * @return
     */
    @Query("FROM FitnessGroup WHERE course = :course AND disabled = false")
    public List<FitnessGroup> list(@Variable("course") Course course);

}
